﻿using Elsa.Services;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Cl.Service.ElsaWorkflow.Activity.ClAudit.BookMarks
{
    public class AuditActivityBookMark : IBookmark
    {
        public string UserCode { get; set; }
        /// <summary>
        /// 活动（节点）名称
        /// </summary>
        public string ActiveName { get; set; }

        /// <summary>
        /// 工作流名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// work实体定义
        /// </summary>
        public string EntityId { get; set; }

        public AuditActivityBookMark()
        {
        }

        /// <summary>
        /// 自定义审核实体
        /// </summary>
        /// <param name="user">用户账号</param>
        /// <param name="workName">工作流名称</param>
        /// <param name="activeName">活动名称</param>
        /// <param name="endityid"></param>
        public AuditActivityBookMark(string user, string workName, string activeName, string endityid)
        {
            UserCode = user.ToLower();
            ActiveName = activeName;
            Name = workName;
            EntityId = endityid;
        }
    }
}
